package com.weifangfirecontrolformal.weifangfirecontrolformal.web.web.check.minifirestation;

import cn.hutool.json.JSONObject;
import com.weifangfirecontrolformal.weifangfirecontrolformal.common.base.BaseController;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.annotaion.Action;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.annotaion.At;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.model.RespEntity;
import com.weifangfirecontrolformal.weifangfirecontrolformal.web.service.check.minifirestation.MiniFirestationService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.annotation.Resource;

/**
 * 微型消防站控制器
 */
@Action
@RequestMapping(value="check/miniFirestation")
public class MiniFirestationController extends BaseController {
    @Resource
    public MiniFirestationService miniFirestationService;

    /**
     * 微型消防站新增
     * @param
     * img	照片
     * des	简介描述
     * @return
     */
    @At(value = "miniFirestationAdd", method = RequestMethod.GET, param = { "des"})
    public RespEntity miniFirestationAdd(@RequestBody(required = false) JSONObject jsonParam) {
        return miniFirestationService.miniFirestationAdd(jsonParam);
    }

    /**
     * 微型消防站详情
     * @param  id	微型消防站的id
     * @return
     */
    @At(value = "miniFirestationDetail", method = RequestMethod.GET)
    public RespEntity miniFirestationDetail(@RequestBody(required = false) JSONObject jsonParam) {
        return miniFirestationService.miniFirestationDetail(jsonParam);
    }
   
}